package com.ttc.ssm.po;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by Jiarui on 2016/7/29.
 */
public class Job {

    private int job_id;

    private int company_id;

    private int job_property_id;

    private String job_name;

    private int job_type_id;

    private int number;

    private int degree_id;

    private String work_year;

    private int salary_type_id;

    private int show_salary;

    private String job_description;

    private int city_id;

    private String address;

    private Date date_start;

    private Date date_end;

    private Date date_added;

    private Date date_modified;

    private int is_publish;

    private int read;

    private int order;

    private int status;

    private String date_start_string;

    private String date_end_string;

    private String date_added_string;

    private String date_modified_string;

    public void setDate_modified_string(String date_modified_string) {
        this.date_modified_string = date_modified_string;
    }

    public String getDate_modified_string() {

        if(date_modified!=null) {

            java.text.DateFormat format1 = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

            date_modified_string = format1.format(date_modified);

        }

        return date_modified_string;

    }

    private City city;

    private Zone zone;

    private Company company;

    private JobType jobType;

    private List tag;

    public void setTag(List tag) {
        this.tag = tag;
    }

    public List getTag() {

        return tag;
    }

    @Override
    public String toString() {
        return "Job{" +
                "job_id=" + job_id +
                ", company_id=" + company_id +
                ", job_property_id=" + job_property_id +
                ", job_name='" + job_name + '\'' +
                ", job_type_id=" + job_type_id +
                ", number=" + number +
                ", degree_id=" + degree_id +
                ", work_year='" + work_year + '\'' +
                ", salary_type_id=" + salary_type_id +
                ", show_salary=" + show_salary +
                ", job_description='" + job_description + '\'' +
                ", city_id=" + city_id +
                ", address='" + address + '\'' +
                ", date_start=" + date_start +
                ", date_end=" + date_end +
                ", date_added=" + date_added +
                ", date_modified=" + date_modified +
                ", is_publish=" + is_publish +
                ", read=" + read +
                ", order=" + order +
                ", status=" + status +
                ", date_start_string='" + date_start_string + '\'' +
                ", date_end_string='" + date_end_string + '\'' +
                ", date_added_string='" + date_added_string + '\'' +
                ", date_modified_string='" + date_modified_string + '\'' +
                ", city=" + city +
                ", zone=" + zone +
                ", company=" + company +
                ", jobType=" + jobType +
                ", tag=" + tag +
                ", degree=" + degree +
                ", salaryType=" + salaryType +
                ", jobProperty=" + jobProperty +
                '}';
    }

    private Degree degree;

    private SalaryType salaryType;

    private JobProperty jobProperty;

    public void setJobProperty(JobProperty jobProperty) {
        this.jobProperty = jobProperty;
    }

    public JobProperty getJobProperty() {

        return jobProperty;
    }

    public void setCity(City city) {
        this.city = city;
    }

    public void setZone(Zone zone) {
        this.zone = zone;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public void setJobType(JobType jobType) {
        this.jobType = jobType;
    }

    public void setDegree(Degree degree) {
        this.degree = degree;
    }

    public void setSalaryType(SalaryType salaryType) {
        this.salaryType = salaryType;
    }

    public City getCity() {

        return city;
    }

    public Zone getZone() {
        return zone;
    }

    public Company getCompany() {
        return company;
    }

    public JobType getJobType() {
        return jobType;
    }

    public Degree getDegree() {
        return degree;
    }

    public SalaryType getSalaryType() {
        return salaryType;
    }

    public void setDate_start_string(String date_start_string) {
        this.date_start_string = date_start_string;
    }

    public void setDate_end_string(String date_end_string) {
        this.date_end_string = date_end_string;
    }

    public void setDate_added_string(String date_added_string) {
        this.date_added_string = date_added_string;
    }

    public String getDate_start_string() {

        if(date_start!=null) {

            java.text.DateFormat format1 = new java.text.SimpleDateFormat("yyyy-MM-dd");

            date_start_string = format1.format(date_start);

        }

        return date_start_string;
    }

    public String getDate_end_string() {

        if(date_end!=null) {

            java.text.DateFormat format1 = new java.text.SimpleDateFormat("yyyy-MM-dd");

            date_end_string = format1.format(date_end);

        }

        return date_end_string;
    }

    public String getDate_added_string() {

        if(date_added!=null) {

            java.text.DateFormat format1 = new java.text.SimpleDateFormat("yyyy-MM-dd");

            date_added_string = format1.format(date_added);

        }

        return date_added_string;
    }

    public void setJob_id(int job_id) {
        this.job_id = job_id;
    }

    public void setCompany_id(int company_id) {
        this.company_id = company_id;
    }

    public void setJob_property_id(int job_property_id) {
        this.job_property_id = job_property_id;
    }

    public void setJob_name(String job_name) {
        this.job_name = job_name;
    }

    public void setJob_type_id(int job_type_id) {
        this.job_type_id = job_type_id;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public void setDegree_id(int degree_id) {
        this.degree_id = degree_id;
    }

    public void setWork_year(String work_year) {
        this.work_year = work_year;
    }

    public void setSalary_type_id(int salary_type_id) {
        this.salary_type_id = salary_type_id;
    }

    public void setShow_salary(int show_salary) {
        this.show_salary = show_salary;
    }

    public void setJob_description(String job_description) {
        this.job_description = job_description;
    }

    public void setCity_id(int city_id) {
        this.city_id = city_id;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setDate_start(Date date_start) {
        this.date_start = date_start;
    }

    public void setDate_end(Date date_end) {
        this.date_end = date_end;
    }

    public void setDate_added(Date date_added) {
        this.date_added = date_added;
    }

    public void setDate_modified(Date date_modified) {
        this.date_modified = date_modified;
    }

    public void setIs_publish(int is_publish) {
        this.is_publish = is_publish;
    }

    public void setRead(int read) {
        this.read = read;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getJob_id() {

        return job_id;
    }

    public int getCompany_id() {
        return company_id;
    }

    public int getJob_property_id() {
        return job_property_id;
    }

    public String getJob_name() {
        return job_name;
    }

    public int getJob_type_id() {
        return job_type_id;
    }

    public int getNumber() {
        return number;
    }

    public int getDegree_id() {
        return degree_id;
    }

    public String getWork_year() {
        return work_year;
    }

    public int getSalary_type_id() {
        return salary_type_id;
    }

    public int getShow_salary() {
        return show_salary;
    }

    public String getJob_description() {
        return job_description;
    }

    public int getCity_id() {
        return city_id;
    }

    public String getAddress() {
        return address;
    }

    public Date getDate_start() {
        return date_start;
    }

    public Date getDate_end() {
        return date_end;
    }

    public Date getDate_added() {
        return date_added;
    }

    public Date getDate_modified() {
        return date_modified;
    }

    public int getIs_publish() {
        return is_publish;
    }

    public int getRead() {
        return read;
    }

    public int getOrder() {
        return order;
    }

    public int getStatus() {
        return status;
    }
}
